package com.situ.day1;

import org.junit.Test;

// Shift+Enter
public class HelloWorld {
    //main
    //Code review
    //arg: argument 参数
    public static void main(String[] args) {
        //sout
        //Ctrl+Alt+L
        System.out.println("HelloWorld");
        System.out.println("HelloWorld");
        System.out.println("HelloWorld");

        //表达一个人的年龄
        //类型  变量
        //=：是赋值
        //变量的命名：你想表达什么意思就起什么名字, “见名知意”
        int age = 23;
        int $age2 = 23;
        //int 9$age2 = 23;

        //变量 variable  var
        int age1 = 24;
        age1 = 34;
        //final修饰的变量就是常量：值不能改变
        final int age2 = 23;
        //Cannot assign a value to final variable 'age2'
        //age2 = 34;

        //test();
    }

    //JUnit:Java Unit
    //Alt+Enter
    // case sensitive 大小写敏感 num1
    @Test
    public void test1() {
        //soutm
        System.out.println("HelloWorld.test");
        int num = 3;
        num = num + 1;
        double d = 3.14;
        float f = 3.14f;
        char ch1 = 'a';
        char ch2 = '中';
        boolean b1 = true;
        boolean b2 = false;
    }

    @Test
    public void test2() {
        System.out.println("HelloWorld.test2");
    }



}
